<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>     

<title>商户信息变更修改</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
	<link href="<s:url value="/css/divTuo.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"
	rel="stylesheet" />


<script type="text/javascript"
	src="<s:url value="/js/jquery-1.3.2.js" />"></script>
	<script type="text/javascript"
	src="<s:url value="/js/ajaxfileupload.js" />"></script>
		<script type="text/javascript"
	src="<s:url value="/js/jquery.blockUI.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/jquery.validate.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/pwms.validate.js?v13" />"></script>
<script language="javascript" type="text/javascript"
	src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type='text/javascript' src='<s:url value="/dwr/engine.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/MccQuery.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/AddressQuery.js"/>'></script>

<style type="text/css">
.fieldError {
	color: red;
	text-align: left;
}

.error {
	float: none;
	color: red;
	padding-left: .5em;
	vertical-align: top;
}

table th {
	font-weight: bolder;
	text-align: left;
	background-color: #5599FF;
}
</style>
<script type="text/javascript" language="javaScript">
 
	$(document).ready(function() {
		 $("#terminalDiv").click(function(){
				
						var table=$("#istable").get(0);
					    var count=5;
						var lengths=table.rows.length;
						if(lengths > count*4+2){
							return false;
						}
						
				     var a=""
				     +"<tr><td align='right' width='20%'>门店名称：</td><td align='left'><input type='text' maxlength='50' class='queryWidth' name='termBeanList["+parseInt(lengths/4)+"].termName'/><font color='red'>*</font></td><td align='right' width='20%'>终端类型：</td><td align='left'><select class='someWidth' name='termBeanList["+parseInt(lengths/4)+"].tidKind'><option value='01'>移动</option><option value='02'>固定</option></select></td><td> <input type='button' onclick='deleteRows(this)' value='删除' /></td></tr>"
				     +"<tr><td align='right' width='20%'>机器序列号：</td><td align='left' ><input type='text' maxlength='20' id='serialNum"+lengths+"'  class='queryWidth'  name='termBeanList["+parseInt(lengths/4)+"].serialNum' style='background-color: lightgray' readonly='readonly'/><font color='red'>*</font><input type='button'  onclick='showPosInfoWindow("+lengths+")' value='选择'/></td>"
				     +"<td align='right' width='20%'>终端安装地址：</td><td colspan='2' align='left'><input type='text' maxlength='50' class='someWidth' name='termBeanList["+parseInt(lengths/4)+"].termAddress'/><font color='red'>*</font></td></tr>"
				     +"<tr><td align='right' width='20%'>备注：</td><td colspan='4' align='left'><input type='text' maxlength='65'  class='someWidth'  name='termBeanList["+parseInt(lengths/4)+"].termNote'/></td></tr>"
				     +"<tr><td colspan='5'><input name='statIndex'  type='hidden' /></td></tr>"
				     +"";
				     $("#istable").append(a);
				     currentTerNum=currentTerNum+1;
				     return false;
				});
		$("#commAmt").val("0.00");
		$("#commAmt").attr("readonly","true");
		$("#commAmt").css("background-color","lightgray");
		 $("#commModes").change(function (){
		 	 var val=$("#commModes").val();
		 	 if(val==1){
		 	 	$("#commAmt").val("0.00");
		 	 	$("#rate").removeAttr("readonly");
		 	 	$("#rate").removeAttr("style");
		 	 	$("#commAmt").attr("readonly","true");
		 	 	$("#commAmt").css("background-color","lightgray");
		 	 }else if(val==2){
		 	 	$("#rate").val("0.0000");
		 	 	$("#commAmt").removeAttr("readonly");
		 	 	$("#commAmt").removeAttr("style");
		 	 	$("#rate").attr("readonly","true");
		 	 	$("#rate").css("background-color","lightgray");
		 	 }else if(val==3){
		 		 $("#rate").removeAttr("readonly");
		 		 $("#rate").removeAttr("style");
		 		 $("#commAmt").removeAttr("style");
		 	 	$("#commAmt").removeAttr("readonly");
		 	 }
		 });
		 
		  $("#merinfoForm").validate({
		    debug : true, 
		    submitHandler : function(form) {
			
				form.submit();
			}, 
			rules : {
			    "merinfoChange.address" : {required : true},
				
				"merinfoChange.accBank":{required : true},
				"merinfoChange.contact":{required : true},
				"merinfoChange.accNo":{required : true},
				"merinfoChange.commMode" : {required : true},
				"merinfoChange.commRate" : {required : true,isDecimal: function(){
														var min = 0;
														var max = 9.9999;
														var accuracy = 4;
														return [min, max, accuracy];}
									},
				"merinfoChange.commAmt" : {required : true,isDecimal: function(){
														var min = 0;
														var max = 999999999999;
														var accuracy = 2;
														return [min, max, accuracy];}},
				"merinfoChange.commAmtN" :{required:true},
				"termBeanList[0].termName":{required:true},
				"termBeanList[0].termAddress":{required:true},
				"termBeanList[0].serialNum":{required:true},
				"termBeanList[1].termName":{required:true},
				"termBeanList[1].termAddress":{required:true},
				"termBeanList[1].serialNum":{required:true},
				"termBeanList[2].termName":{required:true},
				"termBeanList[2].termAddress":{required:true},
				"termBeanList[2].serialNum":{required:true},
				"termBeanList[3].termName":{required:true},
				"termBeanList[3].termAddress":{required:true},
				"termBeanList[3].serialNum":{required:true},
				"termBeanList[4].termName":{required:true},
				"termBeanList[4].termAddress":{required:true},
				"termBeanList[4].serialNum":{required:true},
                 "file":{required:true},
                 "file1":{required:true},
                 "file2":{required:true},
                 "file4":{required:true}
                 
			},
			messages : {
				"merinfoChange.address" : {required : "必填"},
			
				"merinfoChange.accBank":{required : "必填"},
				"merinfoChange.contact":{required : "必填"},
				"merinfoChange.accNo":{required : "必填"},
				"merinfo.commMode" : {required : "必填"},
				"merinfo.commRate" : {required : "必填"},
				"merinfo.commAmt" : {required : "必填"},
				"merinfoChange.commAmtN" :{required:true},
				"termBeanList[0].termAddress":{required:"必填"},
				"termBeanList[0].serialNum":{required:"必填"},
				"termBeanList[1].termName":{required:"必填"},
				"termBeanList[1].termAddress":{required:"必填"},
				"termBeanList[1].serialNum":{required:"必填"},
				"termBeanList[2].termName":{required:"必填"},
				"termBeanList[2].termAddress":{required:"必填"},
				"termBeanList[2].serialNum":{required:"必填"},
				"termBeanList[3].termName":{required:"必填"},
				"termBeanList[3].termAddress":{required:"必填"},
				"termBeanList[3].serialNum":{required:"必填"},
				"termBeanList[4].termName":{required:"必填"},
				"termBeanList[4].termAddress":{required:"必填"},
				"termBeanList[4].serialNum":{required:"必填"},
				"file":{required:"请上传"},
				"file1":{required:"请上传"},
			    "file2":{required:"请上传"},
			     "file4":{required:"请上传"}
				
			},
			onsubmit : true,
			invalidHandler : function(event, validator) {
				alert("您的输入信息不完整或者不符合要求，请检查后重新输入");

			}

		});	
	}); 
	
	function checkImgs(str){
		
		var hiddenValue = $("#"+str).val();
		
     var ScreenWidth = screen.availWidth ;
     var ScreenHeight = screen.availHeight; 
     var StartX = (ScreenWidth - innerWidth) / 2 ;
     var StartY = (ScreenHeight - innerHeight) / 2; 
     
     var url =  "<%=basePath%>mer/openImg.ct?imgUrl=" +hiddenValue;
                
     window.open(url, '图片预览', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no');      
      
     
	}
	function closeDiv(){
		 $(document).ready(function () {
		      $.unblockUI();
        });
	}	
	
	 function ajaxFileUpload(ids){
				var id=$("#"+ids).val();
				if(id=="" ||id==null){
					alert("请选择需要上传的图片~！");
					return;
				}
                $.ajaxFileUpload(
                    {
                 url:'<s:url value="/mer/addMerinfoImg.ct" />',            //需要链接到服务器地址
                 secureuri:false,
                 fileElementId:ids,                         
                 dataType: 'String',
                 success: function (a) { 
               
                 	a=a.replace("<pre>","");
                    a=a.replace("</pre>","");
                    var mess=a.substring(0,4);
                  if(mess=="http"){
                  	 var fonts="#"+ids+"IputFont";    
                      $(fonts).html("上传成功！");
                      
                     var inputs="#"+ids+"Iput";
                      $(inputs).val(a);
                      $(inputs+"Show").attr("disabled","");
                  }else{
                  	 var fonts="#"+ids+"IputFont";    
                      $(fonts).html("文件格式不正确！");
                  }
                 	
                 },
                 error: function (data, status, e) {
                 		 var fonts="#"+ids+"IputFont";    
                      $(fonts).html("上传失败！请检查网络或联系管理员！");
                 }
             }
                    
                );
               
           }
           
           
           
           function clearSelect(sid) {
			$("#" + sid).empty().append("<option value=''>--请选择--</option>");
		}
		//进行遍历存值
	  	function fillSelect_sort(sid, address) {
	  		
				if (!address || !sid) {
					return;
				}
				var $select = $("#" + sid);
				$select.empty();
				if (address.length != 1) {
					$select.append("<option value=''>--请选择--</option>");
				}
				
				for ( var i = 0; i < address.length; i++) {
					$select.append("<option value='"+address[i].CODE+"'>"
							+ address[i].NAME + "</option>");
					
				}
		}
		//加载一级类别
		function loadSorts() {
		 	
			
			AddressQuery.loadProvices(function(objs){
				clearSelect("citys");
				clearSelect("bankBranchs");
				
				fillSelect_sort("provinces", objs);
				loadCity();
			});
		}
           
            function loadCity() {
			var sortCode = $("#provinces").val();
			$("#citys").val("");
			 $("#banks").val("");
			 $("bankBranchs").val("");
			if (!sortCode) {
				return;
			}
			AddressQuery.loadCitys(sortCode, function(sortSmall) {
					
				fillSelect_sort("citys", sortSmall);
				
			});
		}
		//load bank
		function loadBank(){
			 $("#banks").val("");
			 $("bankBranchs").val("");
		}
		//load　bankBranch
		 function loadBankBranch() {
			var b = $("#banks").val();
			var p=$("#provinces").val();
			var c=$("#citys").val();
			 $("bankBranchs").val("");
			if(p=="" || c==""){
				alert("请选择开户行所在地");
				return;
			}
			
			
			AddressQuery.loadPayBankBranch(b,p,c ,function(sortSmall) {
				fillSelect_sort("bankBranchs", sortSmall);
			});
			
		}
		function accBackName(){
			var a= $("#banks  option:selected").text();
			var b= $("#bankBranchs  option:selected").text();
			$("#accBank").val(a+b);
		
		}
		
	
	function checkImgs(str){
		
		 $(document).ready(function () {
     var ScreenWidth = screen.availWidth ;
     var ScreenHeight = screen.availHeight; 
     var StartX = (ScreenWidth - innerWidth) / 2 ;
     var StartY = (ScreenHeight - innerHeight) / 2; 
     
     var url =  "<%=basePath%>mer/openImg.ct?imgUrl=" +str;
                
     window.open(url, '图片预览', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no');      
      
      });
	}
		function deleteRows(input){
		var a=input.parentNode.parentNode.rowIndex;
		var table=$("#istable").get(0);
		
		table.deleteRow(a+3);//删除
		table.deleteRow(a+2);
		table.deleteRow(a+1);
		table.deleteRow(a);
		
	}
	function showPosInfoWindow(str){
    
     var ScreenWidth = screen.availWidth ;
     var ScreenHeight = screen.availHeight; 
     var StartX = (ScreenWidth - innerWidth) / 2 ;
     var StartY = (ScreenHeight - innerHeight) / 2 ;
	 var url =  "<%=basePath %>termAgentSn/termSnAgentInit.ct?serNums="+str;
	
	 window.open(url, '终端序列号信息', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no'); 
	}
	
 
</script>

</head>

<body>
	
		<div class="subpage" >                                 
			<s:form id="merinfoForm" action="/merinfoChangeQuery/saveEdit.ct" method="post"  theme="simple" enctype="multipart/form-data">  
				<div class="user_title">
					<h2 class="headline-inquires">POS收单运营管理平台<br/>
	    		 <span class="sub-title">

	    		 </span></h2>
				</div>
				<table width="100%" border="1" cellspacing="0" class="table">
					<tr>
						<td colspan="6" align="center">
							<input type="hidden" name="merinfoChange.mid"  value="<s:property value="merinfoDetail.mid"/>"/>
						    <input type="hidden" name="merinfoChange.id"  value="<s:property value="merinfoChange.id"/>"/>
							<h2 class="headline-inquires">
								商户信息变更修改[<s:property value="merinfoDetail.mid"/>]<br />
								<span class="sub-title"></span>
							</h2>
						</td>
					</tr>
					
					
					<tr>
						<th colspan="6">商户基本信息</th>
					</tr>
					
					<tr>
						<td style="width:10%;text-align: right;">商户类型：</td>
						
						<td style="width:20%"> 
							<s:if test="merinfoDetail.merKind==\"01\"">企业单位</s:if>
							<s:if test="merinfoDetail.merKind==\"02\"">个体工商户</s:if>
						 </td>
						<td style="width:10%;text-align: right;">所属机构：</td>
						
						<td style="width:20%"><s:property value="merinfoDetail.orgName"/>  </td>
						<td style="width:10%;text-align: right;">所属地区：</td>
						
						<td style="width:20%"> <s:property value="merinfoDetail.areaName"/> </td>
					</tr>
					
					<tr>
						<td style="text-align: right;">商户名称：</td>
						
						<td><s:property value="merinfoDetail.merName"/> </td>
						<td style="text-align: right;">营业名称：</td>
						
						<td><s:property value="merinfoDetail.merBrName"/></td>
						<td style="text-align: right;">业务联系人：</td>
						
						<td><s:property value="merinfoDetail.interContact"/></td>
					</tr>
					<tr>
						<td style="text-align: right;">营业起始时间：</td>
						
						<td><s:property value="merinfoDetail.engName"/> </td>
						<td style="text-align: right;">营业截止时间：</td>
						
						<td><s:property value="merinfoDetail.engBrName"/> </td>
						<td style="text-align: right;">开户行账户名：</td>
						
						<td>
							<s:property value="merinfoDetail.contact"/>
						 </td>
					</tr>
					
					
					<tr>
						<td style="text-align: right;">法人姓名：</td>
						
						<td><s:property value="merinfoDetail.perName"/>  </td>
						<td style="text-align: right;">法人电话 ：</td>
						
						<td><s:property value="merinfoDetail.perPhone"/>  </td>
						<td style="text-align: right;">组织机构代码 ：</td>
						
						<td><s:property value="merinfoDetail.organizationCode"/>  </td>
					</tr>
					<tr>
						<td style="text-align: right;">法人证件类型：</td>
						
						<td>
							<s:if test="merinfoDetail.cardType ==\"01\"">身份证</s:if>
						</td>
						<td style="text-align: right;">法人证件号码 ：</td>
						<td ><s:property value="merinfoDetail.cardNo"/>  </td>
						<td style="text-align: right;">邮编：</td>
						
						<td><s:property value="merinfoDetail.zipCode"/> </td>
					</tr>
					<tr>
						<td style="text-align: right;">开户许可证：</td>
						
						<td><s:property value="merinfoDetail.bankLicense"/> </td>
						<td style="text-align: right;">营业执照号 ：</td>
						
						<td><s:property value="merinfoDetail.busLicense"/>  </td>
						<td style="text-align: right;">税务登记证：</td>
						
						<td><s:property value="merinfoDetail.taxRegCer"/> </td>
					</tr>
				<tr>
						
						<td style="text-align: right;">电话：</td>
						
						<td ><s:property value="merinfoDetail.tel"/> </td>
						<td style="text-align: right;">邮件：</td>
						
						<td><s:property value="merinfoDetail.email"/></td>
						<td style="text-align: right;">传真：</td>
						
						<td><s:property value="merinfoDetail.fax"/> </td>
					</tr>
					
					
					<tr>
						<td style="text-align: right;">备注：</td>
						<td colspan="5"><s:property value="merinfoDetail.meMo"/></td>

					</tr>
					<tr>
						<th colspan="6">审核意见</th>
					</tr>
					<tr>
						<td colspan="6">
						<table width="100%">
							<tr>
								<td width="8%">操作类别</td>
								<td width="8%">审核结论</td>
								<td>审核意见</td>
								<td width="10%">审核人员</td>
								<td width="15%">审核时间</td>
							</tr>
							<s:if test="#request.audtingList!=null">
								<s:iterator value="#request.audtingList" var="au">
									<tr>
										
										<td>
											<s:property value="#au.audit_name"/>
										</td>
										
										<td>
											<s:property value="#au.resultCodeName"/>
										</td>
										
										<td >
											<s:property value="#au.result_detail"/>
										</td>
										<td><s:property value="#au.operators"/></td>
										<td>
											<s:date name="#au.dtCreate"/>
										</td>
									</tr>
								</s:iterator>
							</s:if>
							<s:else>无意见</s:else>
						</table>
					</td>
					</tr>
					<tr>
						<th colspan="6">商户信息修改部分</th>
					</tr>
					<s:if test="merinfoChange.dealCode=='C1'"><s:hidden name="merinfoChange.dealCode"></s:hidden>
					<tr>
						<td style="text-align: right;">原地址：</td>
						<td colspan="5"><s:property value="merinfoDetail.addr"/> </td>
					</tr>
					<tr >
						<td style="text-align: right">原营业起始时间：</td>
						
					   <td style="text-align: left;"><s:property value="merinfoDetail.engName"/></td>
						<td style="text-align: right">原营业终止时间：</td>
						
						<td style="text-align: left;"><s:property value="merinfoDetail.engBrName"/>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">新地址：</td>
						<td colspan="5"><s:textfield id="address" cssClass="someWidth" name="merinfoChange.addr"/> <font color="red">*</font></td>
					</tr>
					<tr >
						<td style="text-align: right">新营业起始时间：</td>
						
					   <td style="text-align: left;"><s:select  name="merinfoChange.engName" list="#{'000000':'000000','010000':'010000','020000':'020000','030000':'030000','040000':'040000','050000':'050000','060000':'060000','070000':'070000','080000':'080000','090000':'090000','100000':'100000','110000':'110000','120000':'120000','130000':'130000','140000':'140000','150000':'150000','160000':'160000','170000':'170000','180000':'180000','190000':'190000','200000':'200000','210000':'210000','220000':'220000','230000':'230000'}"  cssClass="queryWidth" /> 
						<font color="red">*</font></td>
						<td style="text-align: right">新营业终止时间：</td>
						
						<td style="text-align: left;"><s:select  name="merinfoChange.engBrName" list="#{'005959':'005959','015959':'015959','025959':'025959','035959':'035959','045959':'045959','055959':'055959','065959':'065959','075959':'075959','085959':'085959','095959':'095959','105959':'105959','115959':'115959','125959':'125959','135959':'135959','145959':'145959','155959':'155959','165959':'165959','175959':'175959','185959':'185959','195959':'195959','205959':'205959','215959':'215959','225959':'225959','235959':'235959'}"  cssClass="queryWidth" /> 
						
						<font color="red">*</font>
						</td>
					</tr></s:if><s:elseif test="merinfoChange.dealCode=='C2'">
					<s:hidden name="merinfoChange.dealCode"></s:hidden>
					<tr>
						<td style="text-align: right;">原开户行账户名：</td>
						<td>
							<s:property value="merinfoDetail.contact"/>
						 </td>
						<td style="text-align: right;">原开户银行：</td>
						
						<td><s:property value="merinfoDetail.accBank"/></td>
						<td style="text-align: right;">原开户行账号：</td>
						
						<td>
							<s:property value="merinfoDetail.accNo"/>
						 </td>
						 <td></td>
					</tr>
					<tr>
						<td style="text-align: right">新开户行所在地：</td>
						<td style="text-align: left;"><select id="provinces" name="provinces"  onchange="loadCity()"  class="queryWidth"></select> 
						<select id="citys" name="citys" onchange="loadBank()" class="queryWidth"></select></td>		
						<td style="text-align: right">新支付联行号：</td>	
						<td style="text-align: left;"><s:select id="banks" name="banks" list="#request.bankList"  onchange="loadBankBranch()"  listKey="key" listValue="value" headerKey="99" headerValue="--请选择--" cssClass="queryWidth"></s:select> <font color="red">*</font>
						<select id="bankBranchs"  name="merinfoChange.settBankId" class="queryWidth" onchange="accBackName()" ></select> </td>
						
					</tr>
					<tr >
					    <td style="text-align: right;">新开户银行：</td>
						
						<td><s:textfield id="accBank" cssClass="someWidth" name="merinfoChange.accBank"/><font color="red">*</font></td>
						<td style="text-align: right;">新开户行账户名：</td>
						<td>
							<s:textfield id="contact" cssClass="someWidth" name="merinfoChange.contact"/><font color="red">*</font>
						 </td>
						
						<td style="text-align: right;">新开户行账号：</td>
						
						<td>
							<s:textfield id="accNo" cssClass="someWidth" name="merinfoChange.accNo" /><font color="red">*</font>
						 </td></tr>
					</s:elseif><s:elseif test="merinfoChange.dealCode=='C3'"><s:hidden name="merinfoChange.dealCode"></s:hidden>
					<tr>
						<td style="text-align: right;">原商户扣率类型：</td>
						
						<td> 
							<s:if test="merinfoDetail.commMode==\"1\"">点数</s:if>
							
							<s:if test="merinfoDetail.commMode==\"3\"">封顶</s:if>
							
						 </td>
						<td style="text-align: right;">原商户扣率：</td>
						
						<td><page:amount amount="${merinfoDetail.commRate}"/>%</td>
						<td style="text-align: right;">原封顶手续费金额：</td>
						
						<td><page:amount amount="${merinfoDetail.commAmt}"/> </td>
					</tr>
					<tr>
						<td style="text-align: right;">新商户扣率类型：</td>
						
						<td style="text-align: left;"><s:select id="commModes" name="merinfoChange.commMode" list="#{'1':'点数','3':'封顶' }" cssClass="queryWidth" /> </td>
						<td style="text-align: right;">新商户扣率：</td>
						
						<td style="text-align: left;"><s:textfield id="rate" name="merinfoChange.commRate" cssClass="queryWidth" maxLength="6"/><font color="red">*</font><font color="blue">(%)</font> </td>
						<td style="text-align: right;">新封顶手续费金额：</td>
						
						<td style="text-align: left;"><s:textfield id="commAmt" name="merinfoChange.commAmt" cssClass="queryWidth" maxLength="14"/> <font color="red">*</font></td>
					</tr>
					</s:elseif><s:elseif test="merinfoChange.dealCode=='C4'"><s:hidden name="merinfoChange.dealCode"></s:hidden>
					<tr >
						<td style="text-align: right;">原贷记卡单笔限额：</td>
						
						<td ><page:amount amount="${merinfoDetail.amount1}"/>元  </td>
						<td style="text-align: right;">原贷记卡单日限额：</td>
						
						<td><page:amount amount="${merinfoDetail.dayAmount1}"/>元  </td>
						<td style="text-align: right;">原贷记卡单月限额：</td>
						
						<td><page:amount amount="${merinfoDetail.mouthAmount1}"/>元 </td>
					</tr>
					<tr >
						<td style="text-align: right;">原借记卡单笔限额 ：</td>
						
						<td><page:amount amount="${merinfoDetail.amount2}"/>元 </td>
						<td style="text-align: right;">原借记卡单日限额：</td>
						
						<td><page:amount amount="${merinfoDetail.dayAmount2}"/>元 </td>
						<td style="text-align: right;">原借记卡单月限额：</td>
						
						<td><page:amount amount="${merinfoDetail.mouthAmount2}"/>元 </td>
					</tr>
					<tr>
						<td style="text-align: right;">新贷记卡单笔限额：</td>
						
						<td><s:textfield id="commAmtN" name="merinfoChange.amount1" cssClass="queryWidth"/>元 <font color="red">*</font></td>
						<td style="text-align: right;">新贷记卡单日限额：</td>
						
						<td><s:textfield id="commAmtN" name="merinfoChange.dayAmount1" cssClass="queryWidth"/>元<font color="red">*</font></td>
						<td style="text-align: right;">新贷记卡单月限额：</td>
						
						<td><s:textfield id="commAmtN" name="merinfoChange.mouthAmount1" cssClass="queryWidth"/>元<font color="red">*</font> </td>
					</tr>
					<tr>
						<td style="text-align: right;">新借记卡单笔限额 ：</td>
						
						<td><s:textfield id="commAmtN" name="merinfoChange.amount2" cssClass="queryWidth"/>元<font color="red">*</font></td>
						<td style="text-align: right;">新借记卡单日限额：</td>
						
						<td><s:textfield id="commAmtN" name="merinfoChange.dayAmount2" cssClass="queryWidth"/>元<font color="red">*</font> </td>
						<td style="text-align: right;">新借记卡单月限额：</td>
						
						<td><s:textfield id="commAmtN" name="merinfoChange.mouthAmount2" cssClass="queryWidth"/>元<font color="red">*</font> </td>
					</tr></s:elseif><s:elseif test="merinfo.dealCode=='C5'"><s:hidden name="merinfoChange.dealCode"></s:hidden>
						<tr>
						<td colspan="4">
								<table id="istable" width="100%" cellpadding="0" cellspacing="0" border="0"
									class="table">
									<s:iterator value="termBeanList" status="stat" id="ter">
											<tr>
												<td align="right" width="20%">门店名称：</td>
												<td align="left"><input type="text" maxlength="50" class="queryWidth"  name="termBeanList[<s:property value="#stat.index"/>].termName" value="<s:property value="termBeanList[#stat.index].termName"/>"/><font color="red">*</font></td>
												<td align="right" width="20%">终端类型：</td>
												<td align="left"><select  class="queryWidth"  name="termBeanList[<s:property value="#stat.index"/>].tidKind">
																	<s:if test="termBeanList[#stat.index].tidKind ==\"01\"">
																		<option value="01"selected="selected">移动</option>
																		<option value="02">固定</option> 
																	</s:if>
																	<s:else>
																		<option value="01">移动</option>
																		<option value="02" selected="selected">固定</option>
																	</s:else>
																	
																</select></td>
											    <td>
											    	 <s:if test="#stat.index==0"><input type="button" id="terminalDiv" value="添加" /></s:if>
											    	 <s:else><input type='button' onclick='deleteRows(this)' value='删除' /></s:else>
											    
											    </td>
											</tr>
											<tr>
												
											</tr>
											<tr>
												<td align="right" width="20%">机器序列号：</td>
												<td align="left" colspan="1"> 
												    <input type="text" maxlength="20"  class="queryWidth" id="serialNum<s:property value="#stat.index"/>"  name="termBeanList[<s:property value="#stat.index"/>].serialNum" value="<s:property value="termBeanList[#stat.index].serialNum"/>" readonly="readonly" style="background-color: lightgray" /><font color="red">*</font><input type="button" value="选择" onclick="showPosInfoWindow('<s:property value="#stat.index"/>')"/>
													<input name="termBeanList[<s:property value="#stat.index"/>].tid" value="<s:property value="termBeanList[#stat.index].tid"/>" type="hidden"/>
													<input name="statIndex"  type="hidden" />
												</td>
												<td align="right" width="20%">终端安装地址：</td>
												<td align="left" colspan="2"><input type="text" maxlength="50"  class="someWidth"  name="termBeanList[<s:property value="#stat.index"/>].termAddress" value="<s:property value="termBeanList[#stat.index].termAddress"/>" /><font color="red">*</font></td>
												
											</tr>
											<tr>
												<td align="right" width="20%">备注：</td>
												<td align="left" colspan="4"><input type="text" maxlength="65"  class="someWidth"  name="termBeanList[<s:property value="#stat.index"/>].termNote" value="<s:property value="termBeanList[#stat.index].termNote"/>" /></td>
											</tr>
									</s:iterator>
									
									<tr>
										<td colspan="5">&nbsp;</td>
										<%------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --%>
									</tr>
									</table>
				
								
						</td>
					
					
					</tr>					</s:elseif>
					
					<s:elseif test="merinfoChange.dealCode=='C6'"><s:hidden name="merinfoChange.dealCode"></s:hidden>
					 <tr>
						<td style="text-align: right">原商户状态：</td>
						
					   <td style="text-align: left;"><s:if test="merinfoDetail.flag==0">未开通</s:if>
					   <s:elseif test="merinfoDetail.flag==1">开通</s:elseif>
					   <s:elseif test="merinfoDetail.flag==14">注销（终止合同）</s:elseif>
					   <s:elseif test="merinfoDetail.flag==15">废弃</s:elseif>
					   <s:elseif test="merinfoDetail.flag==13">冻结</s:elseif></td>
						<td style="text-align: right">新商户状态：</td>
						<td style="text-align: left;">注销（终止合同）</td>
	
				 </tr>
					</s:elseif><s:elseif test="merinfoChange.dealCode=='C7'"><s:hidden name="merinfoChange.dealCode"></s:hidden>
					<tr>
						<td style="text-align: right;">原营业名称：</td>
						<td colspan="5"><s:property value="merinfoDetail.merBrName"/> </td>
					</tr>
					<tr >
						<td style="text-align: right">原法人电话：</td>
						
					   <td style="text-align: left;"><s:property value="merinfoDetail.perPhone"/></td>
						<td style="text-align: right">原业务联系人电话：</td>
						
						<td style="text-align: left;"><s:property value="merinfoDetail.tel"/>
						</td>
					</tr>
					<tr >
					<td style="text-align: right;">新营业名称：</td>
						<td colspan="5"><s:textfield id="address" cssClass="someWidth" name="merinfoChange.merBrName"/> <font color="red">*</font></td>
					</tr>
					<tr >
					 	<td style="text-align: right">新法人电话 ：</td>
						
						<td style="text-align: left;"><s:textfield name="merinfoChange.perPhone"   cssClass="queryWidth" maxLength="11" /> <font color="red">*</font></td>
						
						 <td style="text-align: right">新业务联系人电话：</td>	
						<td style="text-align: left;"> <s:textfield name="merinfoChange.tel" cssClass="queryWidth" maxLength="20"/><font color="red">*</font> </td>
					
					</tr></s:elseif><s:elseif test="merinfoChange.dealCode=='C8'"><s:hidden name="merinfoChange.dealCode"></s:hidden><tr>
						<td colspan="6">
							<table width="100%">
								<tr>
								    <td style="text-align: center;"><b>选择</b></td>
									<td style="text-align: center;"><b>终端号</b></td>
									<td style="text-align: center;"><b>门店名称</b></td>
									<td style="text-align: center;"><b>终端类型</b></td>
									<td style="text-align: center;"><b>终端序列号</b></td>
									<td style="text-align: center;"><b>终端安装地址</b></td>
									<td style="text-align: center;"><b>备注</b></td>
								</tr>
								<s:iterator value="#request.terList" var="ter">
									<tr>
									<td align="center">
					        	  	 <s:checkboxlist  id="#ter.tid" name="multi_sel_str" list="#{#ter.tid:''}"  theme="simple" />
					      			</td>
									<td><s:property value="#ter.tid"/> </td>
									<td><s:property value="#ter.termName"/> </td>
									<td>
										<s:if test="#ter.tidKind==\"01\"">移动</s:if>
										<s:if test="#ter.tidKind==\"02\"">固定</s:if>
									</td>
									<td><s:property value="#ter.serialNum"/></td>
									<td><s:property value="#ter.termAddress"/></td>
									<td><s:property value="#ter.note"/></td>
								</tr>
								</s:iterator>
							</table>
						</td>
					</tr></s:elseif>
					
					<tr>
						<th colspan="6">附件信息</th>
					</tr>
										
					<tr><td style="text-align: right">法人证件：</td>
						
						<td style="text-align: left;" colspan="3" style="text-align: left"> <s:file id="file" name="file" title="附件上传" ></s:file> 
	
        				 <input type="button" value="提交" onclick="ajaxFileUpload('file')"/>
        				<span><font id="fileIputFont" color="red"></font> </span>
        				<input id="fileIput" type="hidden" name="merinfoChange.url1" />
        				<input  type="button" id="fileIputShow" onclick="checkImgs('fileIput')" value="预览"/>
        				<font color="red">*</font>
						 </td></tr>
						 <tr>
					
						<td style="text-align: right">营业执照：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file2" name="file2" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file2')"/>
							 <span><font id="file2IputFont" color="red"></font> </span>
							  <input id="file2Iput" type="hidden" name="merinfoChange.url2" />
							  <input id="file2IputShow"  onclick="checkImgs('file2Iput')"  type="button" value="预览" />
						      <font color="red">*</font>
						</td>
					</tr>
					<s:if test="merinfoChange.dealCode=='C2'">
					<s:if test="merinfoDetail.merKind==\"01\"">
					<tr>
					<td style="text-align: right">开户行许可证：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file1" name="file1" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file1')"/>
							 <span><font id="file1IputFont" color="red"></font> </span>
							 <input id="file1Iput" type="hidden" name="merinfoChange.url3"/>
							 <input id="file1IputShow"  type="button" onclick="checkImgs('file1Iput')" value="预览"/><font color="red">*</font>
						</td>
					</tr></s:if><s:else>
					<tr><td style="text-align: right">开户行许可证：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file3" name="file3" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file3')"/>
							 <span><font id="file3IputFont" color="red"></font> </span>
							 <input id="file3Iput" type="hidden" name="merinfoChange.url3"/>
							 <input id="file3IputShow"  type="button" onclick="checkImgs('file3Iput')" value="预览" />
						</td>
					</tr></s:else></s:if>
		<!--  		<s:if test="merinfoChange.dealCode=='C5'">
					<tr><td style="text-align: right">商户信息增机申请单：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file1" name="file1" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file1')"/>
							 <span><font id="file1IputFont" color="red"></font> </span>
							 <input id="file1Iput" type="hidden" name="merinfoChange.url3"/>
							 <input id="file1IputShow"  type="button" onclick="checkImgs('file1Iput')" value="预览" />
							  <font color="red">*</font>
						</td>
					</tr>
					
					</s:if>-->
					<tr><td style="text-align: right">商户信息变更申请单：</td>
						
						<td colspan="3" style="text-align: left"><s:file id="file4" name="file4" title="附件上传"></s:file>
							 <input type="button" value="提交" onclick="ajaxFileUpload('file4')"/>
							 <span><font id="file4IputFont" color="red"></font> </span>
							 <input id="file4Iput" type="hidden" name="merinfoChange.url4"/>
							 <input id="file4IputShow"  type="button" onclick="checkImgs('file4Iput')" value="预览" />
							  <font color="red">*</font>
						</td>
					</tr>
					
					<tr>
						<td colspan="6" align="center"><span style="color: red"><s:actionerror /></span>
							<span style="color: red;"><s:actionmessage /></span > <span style="color: red;"><s:fielderror
									cssClass="fieldError" /></span>
							<span id="otherError"></span>
						</td>
					</tr>
					<tr>
						<td align="center" colspan="6"><s:submit value="保 存" /> &nbsp;&nbsp; 
								<input type="reset" value="取  消"/></td>
					</tr>
					
				</table>

			</s:form>
		</div>
	
</body>
</html>
